package com.wwp.tbshop.activity;

import android.app.Activity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;

import com.wwp.tbshop.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SuggustActivity extends Activity {

    @Bind(R.id.et_suggust)
    EditText mEtSuggust;
    @Bind(R.id.et_contect)
    EditText mEtContect;
    @Bind(R.id.btnSubmit)
    Button mBtnSubmit;
    @Bind(R.id.back)
    ImageView mBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_suggest);
        ButterKnife.bind(this);
    }


    @OnClick({R.id.back, R.id.btnSubmit})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.btnSubmit:
                String trim = mEtSuggust.getText().toString().trim();
                String trim1 = mBtnSubmit.getText().toString().trim();
                if (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim1)) {
                    Toast.makeText(this, "信息不能为空哦，亲", Toast.LENGTH_SHORT).show();
                    return;
                }
                Toast.makeText(this, "谢谢亲的反馈和建议！", Toast.LENGTH_SHORT).show();
                finish();
                break;
        }
    }
}
